package com.mxfcode.back.service;

import com.mxfcode.bbs_common.response.PageDataResult;
import com.mxfcode.entity.BBSCategory;

import java.util.List;
import java.util.Map;

/**
 * @author moxiufeng
 * @date 2021/3/7 23:25
 */
public interface CategoryService {

    PageDataResult getCategoryList(Integer pageNum, Integer pageSize);

    Map<String, Object> addCategory(BBSCategory category);

    Map<String, Object> updateCategory(BBSCategory category);

    BBSCategory getCategoryById(Integer id);

    Map<String, Object> del(Integer id);

    List<BBSCategory> getAllCategoryList();
}
